<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: eosio::var_table&lt; scope, code, table_n, PrimaryType &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceeosio.html">eosio</a></li><li class="navelem"><a class="el" href="structeosio_1_1var__table.html">var_table</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structeosio_1_1var__table-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">eosio::var_table&lt; scope, code, table_n, PrimaryType &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group__contractdev.html">Smart Contract API Reference</a> &raquo; <a class="el" href="group__database.html">Database API</a> &raquo; <a class="el" href="group__database_cpp.html">Database C++ API</a> &raquo; <a class="el" href="group__singlevarindextable.html">Single Variable Length Index Table</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="db_8hpp_source.html">db.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adc33a5b7395c351b1e35a4b66e09c399"><td class="memItemLeft" align="right" valign="top">typedef PrimaryType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a></td></tr>
<tr class="separator:adc33a5b7395c351b1e35a4b66e09c399"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a00817fbd0007392ed4efe9ea999a8237"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a00817fbd0007392ed4efe9ea999a8237">store</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a00817fbd0007392ed4efe9ea999a8237"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store a record to the table.  <a href="#a00817fbd0007392ed4efe9ea999a8237">More...</a><br /></td></tr>
<tr class="separator:a00817fbd0007392ed4efe9ea999a8237"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a588ebc6dfed95337c39b62f5513a0e8a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a588ebc6dfed95337c39b62f5513a0e8a">update</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a588ebc6dfed95337c39b62f5513a0e8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update a record in the table.  <a href="#a588ebc6dfed95337c39b62f5513a0e8a">More...</a><br /></td></tr>
<tr class="separator:a588ebc6dfed95337c39b62f5513a0e8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dc5d880cb41f87f1764d4658356116e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a1dc5d880cb41f87f1764d4658356116e">front</a> (char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a1dc5d880cb41f87f1764d4658356116e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches the front of the table.  <a href="#a1dc5d880cb41f87f1764d4658356116e">More...</a><br /></td></tr>
<tr class="separator:a1dc5d880cb41f87f1764d4658356116e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e9fa6e171a6a4c67e5a526a017521f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a2e9fa6e171a6a4c67e5a526a017521f2">back</a> (char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a2e9fa6e171a6a4c67e5a526a017521f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches the back of the table.  <a href="#a2e9fa6e171a6a4c67e5a526a017521f2">More...</a><br /></td></tr>
<tr class="separator:a2e9fa6e171a6a4c67e5a526a017521f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5efe5f0bd91ad24402963544b4ca6342"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a5efe5f0bd91ad24402963544b4ca6342">load</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a5efe5f0bd91ad24402963544b4ca6342"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches a record from the table.  <a href="#a5efe5f0bd91ad24402963544b4ca6342">More...</a><br /></td></tr>
<tr class="separator:a5efe5f0bd91ad24402963544b4ca6342"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b8230908088ffcaa59adc099244a281"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a7b8230908088ffcaa59adc099244a281">next</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a7b8230908088ffcaa59adc099244a281"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches a record which key is next of the given key.  <a href="#a7b8230908088ffcaa59adc099244a281">More...</a><br /></td></tr>
<tr class="separator:a7b8230908088ffcaa59adc099244a281"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e533c69f8d7f6aa162a88ee0013afb1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a8e533c69f8d7f6aa162a88ee0013afb1">previous</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a8e533c69f8d7f6aa162a88ee0013afb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches a record which key is previous of the given key.  <a href="#a8e533c69f8d7f6aa162a88ee0013afb1">More...</a><br /></td></tr>
<tr class="separator:a8e533c69f8d7f6aa162a88ee0013afb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26654e7479f37c48b098fc81e1dc7ae2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#a26654e7479f37c48b098fc81e1dc7ae2">lower_bound</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:a26654e7479f37c48b098fc81e1dc7ae2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches a record which key is the nearest larger than or equal to the given key.  <a href="#a26654e7479f37c48b098fc81e1dc7ae2">More...</a><br /></td></tr>
<tr class="separator:a26654e7479f37c48b098fc81e1dc7ae2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8926ae179b24866a2b7942d57bb3a13"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#ae8926ae179b24866a2b7942d57bb3a13">upper_bound</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen, char *record, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="memdesc:ae8926ae179b24866a2b7942d57bb3a13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetches a record which key is the nearest larger than the given key.  <a href="#ae8926ae179b24866a2b7942d57bb3a13">More...</a><br /></td></tr>
<tr class="separator:ae8926ae179b24866a2b7942d57bb3a13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab94583a9e229f0b8590f850d73efb8e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1var__table.html#ab94583a9e229f0b8590f850d73efb8e2">remove</a> (<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a> key, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> keylen)</td></tr>
<tr class="memdesc:ab94583a9e229f0b8590f850d73efb8e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a record from the table.  <a href="#ab94583a9e229f0b8590f850d73efb8e2">More...</a><br /></td></tr>
<tr class="separator:ab94583a9e229f0b8590f850d73efb8e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a id="adc33a5b7395c351b1e35a4b66e09c399"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc33a5b7395c351b1e35a4b66e09c399">&#9670;&nbsp;</a></span>primary</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef PrimaryType <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::<a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2e9fa6e171a6a4c67e5a526a017521f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e9fa6e171a6a4c67e5a526a017521f2">&#9670;&nbsp;</a></span>back()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::back </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches the back of the table </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<a id="a1dc5d880cb41f87f1764d4658356116e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1dc5d880cb41f87f1764d4658356116e">&#9670;&nbsp;</a></span>front()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::front </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches the front of the table </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<a id="a5efe5f0bd91ad24402963544b4ca6342"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5efe5f0bd91ad24402963544b4ca6342">&#9670;&nbsp;</a></span>load()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::load </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches a record from the table </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<a id="a26654e7479f37c48b098fc81e1dc7ae2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26654e7479f37c48b098fc81e1dc7ae2">&#9670;&nbsp;</a></span>lower_bound()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::lower_bound </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches a record which key is the nearest larger than or equal to the given key </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<a id="a7b8230908088ffcaa59adc099244a281"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b8230908088ffcaa59adc099244a281">&#9670;&nbsp;</a></span>next()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches a record which key is next of the given key </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<a id="a8e533c69f8d7f6aa162a88ee0013afb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e533c69f8d7f6aa162a88ee0013afb1">&#9670;&nbsp;</a></span>previous()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::previous </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches a record which key is previous of the given key </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<a id="ab94583a9e229f0b8590f850d73efb8e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab94583a9e229f0b8590f850d73efb8e2">&#9670;&nbsp;</a></span>remove()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::remove </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Remove a record from the table. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if a record was removed, and 0 if no record with key was found </dd></dl>

</div>
</div>
<a id="a00817fbd0007392ed4efe9ea999a8237"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00817fbd0007392ed4efe9ea999a8237">&#9670;&nbsp;</a></span>store()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::store </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Store a record to the table </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be stored </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be stored </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be stored </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if a new record was created, 0 if an existing record was updated </dd></dl>

</div>
</div>
<a id="a588ebc6dfed95337c39b62f5513a0e8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a588ebc6dfed95337c39b62f5513a0e8a">&#9670;&nbsp;</a></span>update()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Update a record to the table </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the record was updated, 0 if no record with key was found </dd></dl>

</div>
</div>
<a id="ae8926ae179b24866a2b7942d57bb3a13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8926ae179b24866a2b7942d57bb3a13">&#9670;&nbsp;</a></span>upper_bound()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;account_name scope, account_name code, table_name table_n, typename PrimaryType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1var__table.html">eosio::var_table</a>&lt; scope, code, table_n, PrimaryType &gt;::upper_bound </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structeosio_1_1var__table.html#adc33a5b7395c351b1e35a4b66e09c399">primary</a>&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>keylen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>record</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Fetches a record which key is the nearest larger than the given key </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>- key of the data to be updated </td></tr>
    <tr><td class="paramname">keylen</td><td>- length of the key </td></tr>
    <tr><td class="paramname">record</td><td>- data to be updated </td></tr>
    <tr><td class="paramname">len</td><td>- length of data to be updated </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if key was not found </dd></dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>contracts/eoslib/<a class="el" href="db_8hpp_source.html">db.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
